//
//  PickIconViewController.h
//  FootPrint
//
//  Created by alex tao on 4/24/13.
//  Copyright (c) 2013 alex tao. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GridScrollView.h"
#import "ImageParser.h"

@protocol PickIconDelegate <NSObject>

@optional
- (void)didPickSysImage:(NSString*)sysImgName;
- (void)didPickCustomImage:(long long)imgId;

@end


//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

@interface PickIconViewController : UIViewController <GridScrollDelegate, UIActionSheetDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate, ImageUploadDelegate> {
    
    GridScrollView *        _subGridScroll;
    
    NSInteger               _openIdx;
    
    NSMutableArray *        _customImgArr;
    NSInteger               _customPickIdx;
    
    ImageParser *           _parser;
    
}

@property (assign, nonatomic) id<PickIconDelegate>  pickDelegate;
@property (retain, nonatomic) IBOutlet GridScrollView *gridScroll;
@property (retain, nonatomic) IBOutlet UISegmentedControl *pickSegment;

@property (nonatomic) BOOL  pickMode;
@property (nonatomic) BOOL  disableSysImg;


- (IBAction)segmentChange:(id)sender;
- (IBAction)exit:(id)sender;

- (void)setUserMode;

@end
